package cn.shengchao.examstar.rpc.orders.api;


import cn.shengchao.examstar.rpc.base.PageResult;
import cn.shengchao.examstar.rpc.orders.req.OrderQueryPage;
import cn.shengchao.examstar.rpc.orders.req.Refund;
import cn.shengchao.examstar.rpc.orders.req.RefundQueryPage;
import cn.shengchao.examstar.rpc.orders.req.RemarkReq;
import cn.shengchao.examstar.rpc.orders.res.OrderInfo;
import cn.shengchao.examstar.rpc.orders.res.PayOrderInfoDto;
import cn.shengchao.examstar.rpc.orders.res.OrderList;
import cn.shengchao.examstar.rpc.orders.res.RefundList;

public interface IOrderRpc {
    // 订单列表
    PageResult<OrderList> getOrderList(OrderQueryPage orderQueryPage) throws Exception;

    // 订单详情
    OrderInfo getOrderInfo(String orderId);

    PayOrderInfoDto getOrderInfoDto(Long orderId);
    // 订单退款
    void refunds(Refund refund) throws Exception;

    // 订单备注
    void remarks(RemarkReq remarkReq);

    // 订单退款列表
    PageResult<RefundList> getOrderRefund(RefundQueryPage refundQueryPage);
}
